package com.beta.mq.redis;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "com.beta.mq.redis")
@Data
public class RedisMqProperties {
    /**
     * 队列长度限制
     */
    private long queueSize = 50000;
    /**
     * 消息消费失败后的重试次数。-1：无限次；0-不重试；其它正数-指定的次数；其它负数-不重试
     */
    private int tryTimes = 0;
}
